import request from "@/utils/request";
import type { singerApiponse } from "./model/singerModel";

enum Api {
  singerUrl = "/top/artists",
  singerRUZrl = "/artist/list",
}

export const singerApi = () => {
  return request.get<any, singerApiponse>(
    Api.singerUrl + `?offset=-1&limit=110`
  );
};
export const singerRZApi = (initial = -1, type = 1, area = 96, limit = 100) => {
  return request.get<any, singerApiponse>(Api.singerRUZrl, {
    params: {
      initial,
      type,
      area,
      limit,
    },
  });
};
